import 'package:core_demo/helper/config/route.dart';
import 'package:flutter/material.dart';
import 'package:core/core.dart';

class FourthPage extends StatelessWidget {
  const FourthPage({super.key});

  @override
  Widget build(BuildContext context) {
    return BaseRoot(
      title: '这是第四个界面',
      body: Center(//居中显示
        child: InkWell(//点击widget
          onTap: (){//点击事件
            NavigatorHelper.pushNamed(context, RouteName.third);//页面跳转
          },
          child: Container(
            padding: EdgeInsets.symmetric(horizontal: 10.px,vertical: 8.px),//内边距
            margin: EdgeInsets.symmetric(horizontal: 12.px,vertical: 8.px),//外边距
            decoration: BoxDecoration(//container装饰
              border: Border.all(color: Colors.black,width: 3.px),//边框
              borderRadius: BorderRadius.circular(22.px),//边框圆角
            ),
            child: Text(
              '这是第四个界面',//显示的字符串，必填参数
              style: Colors.grey.toStyle(40.px).withItalic.withBold,//字体样式
            ),
          ),
        ),
      ),
    );
  }
}
